package cn.jiyun.user.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data  //相当于提供get/set以及toString方法
@NoArgsConstructor //相当于提供无参构造器
@AllArgsConstructor //相当于提供全参构造器
public class Users {
//    private String username;
//    private String password;
//    private Integer age;
private Integer id;

    private String name;

    private String pwd;

    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

}
